home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
sound
/
players
/
lps123.lzh
/
LPS123
/
LPS.MAN
< prev
next >
Wrap
Text File
|
1993-11-14
|
13KB
|
331 lines
lps(1) USER COMMANDS lps(1)
NAME
lps - play long samples
SYNOPSIS
lps [-VQ] [-q] [-n [rate]] [-ausU] [-bw] [-im]
[-c channels] [-r rate] [-v volume]
file [file [...]]
DESCRIPTION
Play sound files with unlimited length by loading parts of it
while continiously playing the sample. Can handle files with a
sampling precision of 8 or 16-bit on 1 or 2 channels. Due to
the sound hardware of the Atari ST replaying is always 8-bit on
1 channel. lps has the ability to recognize unsigned linear,
signed linear or logarithmic coded samples. For replaying a
sound file you need a fast device (for example a harddisk or a
ramdisk). Floppy-disks are to slow!
SUPPORTED FORMATS
Interchange File Format 8SVX by Electronic Arts (iff/svx)
Audio format by NeXT and Sun (snd/au)
Audio format by Audio-Visual-Research (avr)
Resource Interchange File Format by Microsoft (wav)
Creative Voice file format by Creative Labs (voc)
HSND format introduced by Maxon's CrazySounds (hsn)
If you want to play one of the formats above, simply put
the filename (with its extension) to the argument. No
options need to be set. All parameters are taken from
the header of the formated file. Options, normaly
changing the sound type are ignored. Only the -V, -Q,
-n, -q, -v options are noticed.
raw data or unknown formats
First let me explain, why an unknown formated file can
be played. Many formats store the sampled data in a
single block using signed, unsigned or U-law encoding.
The header information used by the format is very small,
compared with the sound data, so we play the whole file
decoding it with one of the three sample types. The
information in the header is interpreted as normal sound
data.
As we have no header information how to handle the raw
sound file all the parameters have to be filled by the
user (see OPTIONS). Options not set in the command line
are filled with default values. The default settings
are 8012 Hz, 8-bit, 1 channel (mono), the byteorder is
motorola. If the sample type is unknown an algorithm is
used by default to find out. But note, the algorithm
needs three things to work correctly: the sample
precision (-b/-w), the used byteorder (-m/-i) and time!
In general the encoding scheme for raw sound files on
the Atari ST is unsigned linear (-u).
Version 1.23 Release: November 12, 1993 Page 1
lps(1) USER COMMANDS lps(1)
COMMANDS
To abort replay without MiNT, simply press any key; running MiNT
with or without MultiTOS use ^C (Control+C) or the shell
command: 'kill <pid>'.
OPTIONS
-V
Shows the version number, date and time of creation and
the name of the author (wow, that's me!). Also details
on processing the sound file are displayed. This in-
cludes some technical information taken from the file's
header, the requested memory, further more the setting
of the MFP's timer registers and the resulting replay
rate. This option cancels an older -Q option.
-Q (set by default)
No informations are printed to stdout, except error
messages. This option cancels an older -V option.
-n [rate]
Forces lps to play only every second sample, while using
half the sampling rate. This reduces the quality, but
saves processor time. For good results try this on
speech. If you set the optional parameter rate only
sound files with a sampling rate higher the one you set
are concerned by this function. This option cancels an
older -q option.
-q (set by default)
Use the full quality to replay a sound file. This op-
tion cancels an older -n option.
-r rate (set by default to 8012 Hz)
Sets the rate for playing a raw or unknown sound file.
You can not change the rate of a formated sound file.
rate can range from 96 Hz up to 65535 Hz. This is only a
theoretical value! I did not want to set any limit.
Typical results are: 8 MHz ST with RLL-harddisk up to 16
kHz; 16 MHz Mega STe with AT-Bus-harddisk up to 27 kHz.
This option cancels older rate settings.
-v volume (set by default to 1000)
This changes the amplitude. A value less than 1000
decreases, one greater 1000 increases the amplitude.
volume is limited from 0 to 32767. Note: we perceive
volume logarithmically, not linearly. The "Volume
Adjustment" field shown by sox using the stat effect
gives you the argument (divded by 1000) which makes the
sample as loud as possible.
-c channels (set by default to 1 channel / mono)
Sets the number of channels used in the sound. channels
can be set to 1 for mono or 2 for stereo. You can not
change this for a formated sound file. Remember: This
Version 1.23 Release: November 12, 1993 Page 2
lps(1) USER COMMANDS lps(1)
is only to interprete raw files the right way.
Replaying is always on 1 channel! This option cancels
older channel settings.
-a (set by default)
Sets the sample type automaticly by running an algorithm
which scans the entire sound file. The algorithm has to
know the correct sampling precision (-b/-w) and the used
byteorder (-m/-i) to calculate the right sample type.
If you set the verbose option (-V), the current per-
centage of the scanned part in relation to the whole
file is displayed. Use the proposed type, if you plan
to play it again. You can only use this option on an
unformated sound file. This option cancels older -s, -u
and -U options.
-u
Sets the sample type to unsigned linear. You can only
change the sample type of an unformated sound file.
This option cancels older -s, -a and -U options.
-s
Sets the sample type to signed linear. You can only
change the sample type of an unformated sound file.
This option cancels older -u, -a and -U options.
-U
Sets the sample type to U-law. You can only change the
sample type of an unformated sound file. This option
cancels older -s, -a and -u options.
-b (set by default)
Forces lps to set the sampling precision of a headerless
sound file to 8-bit (byte). You can only change the
precision of an unformated sound file. This option
cancels an older -w option.
-w
Forces